package cn.homework.day07;

import java.util.Random;
import java.util.TreeSet;

public class Demo3 {
    public static void main(String[] args) {
        TreeSet<Integer> list = new TreeSet<>();
        Random r = new Random();
        while (list.size() < 6) {
            int red = r.nextInt(33) + 1;
            list.add(red);
        }
        System.out.print("红球：" + list);
        int blue = r.nextInt(16) + 1;
        System.out.println(" | 蓝球：" + blue);
        list.add(blue);
        System.out.println(list);
    }

}
